from flask import render_template

from Config import app
from blueprint.admin.view import admin_bp
from blueprint.note.view import note_bp
from blueprint.user.view import user_bp

# 注册蓝图
app.register_blueprint(user_bp)
app.register_blueprint(note_bp)
app.register_blueprint(admin_bp)


@app.route('/')
def hello_world():
    return render_template('index.html')


if __name__ == '__main__':
    app.run(debug=True, port=8080,host="0.0.0.0")
